package com.mccken.thread;

import java.util.concurrent.Executor;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2024-03-20 22:18
 **/
public class MyExecutor {
	private static void execute(String poolName, Runnable runnable) {
		Executor threadPoolExecutor = MyTreadPoolFactory.getThreadPool(poolName);
		threadPoolExecutor.execute(runnable);
	}
}
